<script setup lang="ts">
// import HelloWorld from './components/HelloWorld.vue'
// vite中,.vue后缀要写
// import Parent from './components/01-Parent.vue'
// import Ref from './components/03-Ref.vue'
// import Computed from './components/04-Computed.vue'
// import RefDom from './components/05-RefDom.vue'
import ChannelNav from './components/ChannelNav.vue'
import ArticleList from './components/ArticleList.vue'
import Pinia from './components/06-Pinia.vue'
// import { ref } from 'vue'
// const channelId = ref(0)
// const change = (id: number) => {
//   channelId.value = id
// }
</script>

<template>
  <!-- <HelloWorld msg="你是个好人"/> -->
  <!-- <Parent /> -->
  <!-- <Ref /> -->
  <!-- <Computed /> -->
  <!-- <RefDom /> -->
  <!-- <ChannelNav :channelId="channelId" @changeChannel="change" />
  <ArticleList :channelId="channelId" />
  <Pinia /> -->
  <ChannelNav />
  <ArticleList />
  <!-- <Pinia /> -->
</template>

<style scoped>
.logo {
  height: 6em;
  padding: 1.5em;
  will-change: filter;
  transition: filter 300ms;
}
.logo:hover {
  filter: drop-shadow(0 0 2em #646cffaa);
}
.logo.vue:hover {
  filter: drop-shadow(0 0 2em #42b883aa);
}
</style>
